import axios from 'axios';

// axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
// axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded';
// 创建axios实例
const isProduction = process.env.NODE_ENV === 'production';
let baseURL = 'http://39.106.227.22:8081'

const request = axios.create({
  baseURL,
  timeout: 5000000,
  // headers: {'Content-Type': 'application/json;charset=utf-8'},// 设置传输内容的类型和编码
});

export default request;